package Day09方法重载_参数传递;

public class ZuoYe {
    public static void main(String[] args) {
        int[] arr = {11, 22, 33, 44, 55, 66};
        change(arr,2,4);
        for (int i = 0; i < arr.length; i++) {
            System.out.print(arr[i] + " ");
        }
    }

    public static void change(int[] arr,int a,int b) {
        int num = arr[a];
        arr[a] = arr[b];
        arr[b] = num;
    }
}

